package com.casic.worklog.model;


import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/**
 * @author 黄志
 * @date 2019-09-13 14:08
 * @param
 * @return
 * @throws
 *
 */
@Data
public class Employee {
    /**
     * 管理员
     */
    public static final Integer MANAGER = 1;

    /**
     * 普通员工
     */
    public static final Integer ORDINARY_STAFF = 0;
    /**
     * /**
     * <p>
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column EMPLOYEE.ID
     *
     * @mbg.generated Sun Sep 08 13:59:39 CST 2019
     */
    private Short id;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column EMPLOYEE.NAME
     *
     * @mbg.generated Sun Sep 08 13:59:39 CST 2019
     */
    @Excel(name = "姓名" , orderNum = "1")
    private String name;

    /**
     * 头像
     */
    private String picUrl;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column EMPLOYEE.GENDER
     *
     * @mbg.generated Sun Sep 08 13:59:39 CST 2019
     */
    @Excel(name = "性别" , orderNum = "2")
    private Integer gender;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column EMPLOYEE.USERNAME
     *
     * @mbg.generated Sun Sep 08 13:59:39 CST 2019
     */
    @Excel(name = "账号" , orderNum = "3")
    private String username;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column EMPLOYEE.PASSWORD
     *
     * @mbg.generated Sun Sep 08 13:59:39 CST 2019
     */
    @Excel(name = "密码" , orderNum = "4")
    private String password;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column EMPLOYEE.POSITION
     *
     * @mbg.generated Sun Sep 08 13:59:39 CST 2019
     */
    @Excel(name = "职位" , orderNum = "5")
    private Integer position;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column EMPLOYEE.PHONE
     *
     * @mbg.generated Sun Sep 08 13:59:39 CST 2019
     */
    @Excel(name = "电话" , orderNum = "6")
    private Long phone;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column EMPLOYEE.ADDRESS
     *
     * @mbg.generated Sun Sep 08 13:59:39 CST 2019
     */
    @Excel(name = "地址" , orderNum = "7")
    private String address;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column EMPLOYEE.HIREDATE
     *
     * @mbg.generated Sun Sep 08 13:59:39 CST 2019
     */
    @Excel(name = "入职时间" , orderNum = "8", format = "yyyy-MM-dd")
    private Date hiredate;
    /**
     * 起始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startDate;

    /**
     * 截止时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column EMPLOYEE.TYPE
     *
     * @mbg.generated Sun Sep 08 13:59:39 CST 2019
     */
    @Excel(name = "人员类型", orderNum = "9", replace = {"普通员工_0", "管理员_1"})
    private Integer type;

}